package com.the_ring.structural.proxy;

/**
 * @author: t22306139
 * @date: 2023/12/1  8:51
 */
public class BuyHouseProxy implements BuyHouse{

    private final BuyHouse buyHouse;

    public BuyHouseProxy(BuyHouse buyHouse) {
        this.buyHouse = buyHouse;
    }

    @Override
    public void buyHouse() {
        System.out.println("买房前中介处理");
        buyHouse.buyHouse();
        System.out.println("买房后中介处理");
    }
}

